<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class logout extends CI_Controller {

	public function __construct()
	{
		parent::__construct();		
		$this->load->library('session');
		$this->data["system_url"] = "http://login.alta.com.vn/";

	}
	
	public function index()
	{

		$this->session->sess_destroy();		
		//redirect('/', 'refresh');	
		redirect($this->data["system_url"]."?redirect=http://crm.altamedia.vn&out", 'refresh');	
	}
}

